﻿<html>
<head>
	<style>
		body{ 
			width:250;
			height:180;
		}
        #idMap
        {
            width: 180px;
        }
	</style>
    <script language="JavaScript" type="text/javascript" src="maps.js"></script>
    	
	<script type="text/javascript">
	function init() 
	{
        var i = 0;
        
        while (i<maps.length)
        {
            idMap.options[i] = new Option (maps[i].Name, i);
            i++;
        }
        
		var map = System.Gadget.Settings.read("map");
		
		if (map != "") idMap.selectedIndex = map;
		
		idMap_onclick();
	}

	System.Gadget.onSettingsClosing = SettingsClosing;
	function SettingsClosing(event)
	{
 		if (event.closeAction == event.Action.commit) {
			
			System.Gadget.Settings.write("map", idMap.selectedIndex);
		}

		event.cancel = false;
	}
	

function idMap_onclick() {
    moreInfo.innerHTML = maps[idMap.selectedIndex].Description;
}

	</script>
</head>
<body onload="init()" style="font-family: Calibri; font-size: 10pt;">
	<span id="mySpan" >Map:&nbsp; <select 
        id="idMap" name="idMap" onchange="return idMap_onclick()">
    </select>
	</span><br/>
	<span style="color:Red" id="moreInfo"></span>
    <p></p>
    <p></p>
    Do you have latest version?<br>
    Check it out on <a href="http://www.codeplex.com/polipomatico">PolipoUpdate</a>:^)
</body>
</html>

